package com.hellobike.haxing.modules.operate.enums;

import lombok.Data;
import lombok.Getter;

@Getter

public enum PageComponentStyleEnum {

    A(0, "无"),
    B(1, "一行一"),
    C(2, "一行二")
    ;

    PageComponentStyleEnum(Integer value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    private Integer value;
    private String desc;

    public static PageComponentStyleEnum getByValue(int value){
        for (int i = 0; i < PageComponentStyleEnum.values().length; i++) {
            PageComponentStyleEnum pageComponentStyleEnum = PageComponentStyleEnum.values()[i];
            if(pageComponentStyleEnum.getValue()==value){
                return pageComponentStyleEnum;
            }
        }
        return null;
    }
}
